{include 'header.tpl'}
<ol class="breadcrumb">
    <li>后台操作记录</li>
</ol>
<form method="get" action="/admin/ActionLog/list" class="form-inline">
    <table>
        <tr>
            <td>
                <label for="form-w" class="control-label">管理员ID：</label>
                <input class="form-control" name="mid" value="{$smarty.get.mid}" placeholder="mid" size="3"/>
            </td>
            <td>
                <label for="form-w" class="control-label">时间范围：</label>
                <input type="text" class="date-picker" name="begin_date" value="{$begin_date}" style="width: 85px;"/> 至 <input type="text" class="date-picker" name="end_date" value="{$end_date}" style="width: 85px;"/>
            </td>
            <td>
                <label for="form-w" class="control-label">操作事件：</label>
                <select name="s_action" class="form-control" style="width: 90px;padding-left: 4px;padding-right: 4px;">
                    <option value="">操作事件</option>
                    {foreach from=$action_type item=item key=k}
                        <option value="{$k}" {if $s_action eq $k}selected="selected"{/if}>{$item}</option>
                    {/foreach}
                </select>
            </td>
            <td>
                <label for="form-w" class="control-label">IP：</label>
                <input class="form-control" name="s_ip" value="{$s_ip}" placeholder="客户端IP" size="10"/>
                <select name="s_ip_type" class="form-control">
                    <option value="">搜索类型</option>
                    {foreach from=$ip_search_type item=item key=k}
                        <option value="{$k}" {if $s_ip_type eq $k}selected="selected"{/if}>{$item}</option>
                    {/foreach}
                </select>
            </td>
            <td><button type="submit" class="btn btn-primary">查找</button> <a href="/admin/ActionLog/list" class="btn btn-danger">清空条件</a> </td>
        </tr>
    </table>
</form>
<div class="clearfix" style="height:30px;"></div>
<table class="table" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
    <tr>
        <td class="left" width="120">操作人</td>
        <td width="140">操作事件</td>
        <td class="left">事件描述</td>
        <td width="100">操作IP</td>
        <td width="140">操作时间</td>
    </tr>
    {foreach from=$freeuser_list item=item}
        <tr>
            <td class="left">{$item.manager}[{$item.mid}]</td>
            <td>{$item.action}</td>
            <td class="left">{$item.comment}</td>
            <td><a href="/admin/ActionLog/list?s_ip={$item.ip}">{$item.ip}</a></td>
            <td>{$item.create_time}</td>
        </tr>
    {/foreach}
</table>
{include "pager.tpl"}
<script type="text/javascript">
$(function () {
    create_date_picker();
});
</script>
{include 'footer.tpl'}